package top.heliming.youyou.search.service;

import java.io.IOException;
import top.heliming.youyou.common.pojo.PageResult;
import top.heliming.youyou.item.pojo.Spu;
import top.heliming.youyou.search.pojo.Goods;
import top.heliming.youyou.search.pojo.SearchRequest;

/**
 * description: //TODO
 *
 * @author: heliming
 * @date:2019/06/02 上午 8:58
 */
public interface SearchService {
  Goods buildGoods(Spu spu) throws IOException;

  PageResult<Goods> search(SearchRequest request);
  void createIndex(Long id) throws IOException;
  void deleteIndex(Long id);
}
